
package system.data;

import java.util.*;

import framework.core.*;
/*
	Author    :Jackey
	CreateTime:2008-03-03 10:36:31
*/
public class InHeadHisBase extends Table 
{
public static final String TABLE_NAME = "T_IN_HEAD_HIS";

private static final String BACKUP_TABLE_NAME = "T_IN_HEAD_BACKUP";

private static final String BACKUP_SEQ_NAME = "S_IN_HEAD_BACKUP";


public static final String ID = "ID";

public static final String IN_BILL_CODE = "IN_BILL_CODE";

public static final String WAREHOUSE_CODE = "WAREHOUSE_CODE";

public static final String WAREHOUSE_NAME = "WAREHOUSE_NAME";

public static final String PROVIDER_CODE = "PROVIDER_CODE";

public static final String PROVIDER_NAME = "PROVIDER_NAME";

public static final String OTHER_WAREHOUSE_CODE = "OTHER_WAREHOUSE_CODE";

public static final String OTHER_WAREHOUSE_NAME = "OTHER_WAREHOUSE_NAME";

public static final String IN_TIME = "IN_TIME";

public static final String IN_TYPE = "IN_TYPE";

public static final String IN_MONEY = "IN_MONEY";

public static final String SEND_BILL_CODE = "SEND_BILL_CODE";

public static final String REMARK = "REMARK";

public static final String BALANCE_FLAG = "BALANCE_FLAG";

public static final String BALANCE_USER_ID = "BALANCE_USER_ID";

public static final String BALANCE_USER = "BALANCE_USER";

public static final String BALANCE_TIME = "BALANCE_TIME";

public static final String STATUS = "STATUS";

public static final String CREATE_USER_ID = "CREATE_USER_ID";

public static final String CREATE_USER = "CREATE_USER";

public static final String CREATE_TIME = "CREATE_TIME";

public static final String LAST_UPDATE_USER_ID = "LAST_UPDATE_USER_ID";

public static final String LAST_UPDATE_USER = "LAST_UPDATE_USER";

public static final String LAST_UPDATE_TIME = "LAST_UPDATE_TIME";

public static final String IS_SYNC = "IS_SYNC";


public static Vector m_fields = null;


private String m_id = ""; //ID

private String m_in_bill_code = ""; //入库单编码

private String m_warehouse_code = ""; //仓库编码

private String m_warehouse_name = ""; //仓库名称

private String m_provider_code = ""; //供应商编码

private String m_provider_name = ""; //供应商名称

private String m_other_warehouse_code = ""; //对方仓库编码

private String m_other_warehouse_name = ""; //对方仓库名称

private String m_in_time = ""; //入库时间

private String m_in_type = ""; //入库类型

private double m_in_money = Value.NULL_DOUBLE; //入库金额

private String m_send_bill_code = ""; //送货单号

private String m_remark = ""; //备注

private String m_balance_flag = ""; //结算标志

private String m_balance_user_id = ""; //结算人ID

private String m_balance_user = ""; //结算人姓名

private String m_balance_time = ""; //结算时间

private String m_status = ""; //是否有效

private String m_create_user_id = ""; //创建用户ID

private String m_create_user = ""; //创建用户

private String m_create_time = ""; //单证创建时间

private String m_last_update_user_id = ""; //最后修改人ID

private String m_last_update_user = ""; //最后修改人

private String m_last_update_time = ""; //最后修改时间

private String m_is_sync = ""; //是否已同步



	public String getId()
	{
	    return m_id;
	}
	public void  setId(String v)
	{
		if(getId().equals(v)) return ;
		m_id = v ;
		markDirty(ID);
	}



	

	public String getInBillCode()
	{
	    return m_in_bill_code;
	}
	public void  setInBillCode(String v)
	{
		if(getInBillCode().equals(v)) return ;
		m_in_bill_code = v ;
		markDirty(IN_BILL_CODE);
	}



	

	public String getWarehouseCode()
	{
	    return m_warehouse_code;
	}
	public void  setWarehouseCode(String v)
	{
		if(getWarehouseCode().equals(v)) return ;
		m_warehouse_code = v ;
		markDirty(WAREHOUSE_CODE);
	}



	

	public String getWarehouseName()
	{
	    return m_warehouse_name;
	}
	public void  setWarehouseName(String v)
	{
		if(getWarehouseName().equals(v)) return ;
		m_warehouse_name = v ;
		markDirty(WAREHOUSE_NAME);
	}



	

	public String getProviderCode()
	{
	    return m_provider_code;
	}
	public void  setProviderCode(String v)
	{
		if(getProviderCode().equals(v)) return ;
		m_provider_code = v ;
		markDirty(PROVIDER_CODE);
	}



	

	public String getProviderName()
	{
	    return m_provider_name;
	}
	public void  setProviderName(String v)
	{
		if(getProviderName().equals(v)) return ;
		m_provider_name = v ;
		markDirty(PROVIDER_NAME);
	}



	

	public String getOtherWarehouseCode()
	{
	    return m_other_warehouse_code;
	}
	public void  setOtherWarehouseCode(String v)
	{
		if(getOtherWarehouseCode().equals(v)) return ;
		m_other_warehouse_code = v ;
		markDirty(OTHER_WAREHOUSE_CODE);
	}



	

	public String getOtherWarehouseName()
	{
	    return m_other_warehouse_name;
	}
	public void  setOtherWarehouseName(String v)
	{
		if(getOtherWarehouseName().equals(v)) return ;
		m_other_warehouse_name = v ;
		markDirty(OTHER_WAREHOUSE_NAME);
	}



	

	public String getInTime()
	{
	    return m_in_time;
	}
	public void  setInTime(String v)
	{
		if(getInTime().equals(v)) return ;
		m_in_time = v ;
		markDirty(IN_TIME);
	}



	

	public String getInType()
	{
	    return m_in_type;
	}
	public void  setInType(String v)
	{
		if(getInType().equals(v)) return ;
		m_in_type = v ;
		markDirty(IN_TYPE);
	}



	

	public double getInMoney()
	{
	    return m_in_money;
	}
	public void  setInMoney(double v)
	{
		if(getInMoney()==v) return ;
		m_in_money = v ;
		markDirty(IN_MONEY);
	}



	

	public String getSendBillCode()
	{
	    return m_send_bill_code;
	}
	public void  setSendBillCode(String v)
	{
		if(getSendBillCode().equals(v)) return ;
		m_send_bill_code = v ;
		markDirty(SEND_BILL_CODE);
	}



	

	public String getRemark()
	{
	    return m_remark;
	}
	public void  setRemark(String v)
	{
		if(getRemark().equals(v)) return ;
		m_remark = v ;
		markDirty(REMARK);
	}



	

	public String getBalanceFlag()
	{
	    return m_balance_flag;
	}
	public void  setBalanceFlag(String v)
	{
		if(getBalanceFlag().equals(v)) return ;
		m_balance_flag = v ;
		markDirty(BALANCE_FLAG);
	}



	

	public String getBalanceUserId()
	{
	    return m_balance_user_id;
	}
	public void  setBalanceUserId(String v)
	{
		if(getBalanceUserId().equals(v)) return ;
		m_balance_user_id = v ;
		markDirty(BALANCE_USER_ID);
	}



	

	public String getBalanceUser()
	{
	    return m_balance_user;
	}
	public void  setBalanceUser(String v)
	{
		if(getBalanceUser().equals(v)) return ;
		m_balance_user = v ;
		markDirty(BALANCE_USER);
	}



	

	public String getBalanceTime()
	{
	    return m_balance_time;
	}
	public void  setBalanceTime(String v)
	{
		if(getBalanceTime().equals(v)) return ;
		m_balance_time = v ;
		markDirty(BALANCE_TIME);
	}



	

	public String getStatus()
	{
	    return m_status;
	}
	public void  setStatus(String v)
	{
		if(getStatus().equals(v)) return ;
		m_status = v ;
		markDirty(STATUS);
	}



	

	public String getCreateUserId()
	{
	    return m_create_user_id;
	}
	public void  setCreateUserId(String v)
	{
		if(getCreateUserId().equals(v)) return ;
		m_create_user_id = v ;
		markDirty(CREATE_USER_ID);
	}



	

	public String getCreateUser()
	{
	    return m_create_user;
	}
	public void  setCreateUser(String v)
	{
		if(getCreateUser().equals(v)) return ;
		m_create_user = v ;
		markDirty(CREATE_USER);
	}



	

	public String getCreateTime()
	{
	    return m_create_time;
	}
	public void  setCreateTime(String v)
	{
		if(getCreateTime().equals(v)) return ;
		m_create_time = v ;
		markDirty(CREATE_TIME);
	}



	

	public String getLastUpdateUserId()
	{
	    return m_last_update_user_id;
	}
	public void  setLastUpdateUserId(String v)
	{
		if(getLastUpdateUserId().equals(v)) return ;
		m_last_update_user_id = v ;
		markDirty(LAST_UPDATE_USER_ID);
	}



	

	public String getLastUpdateUser()
	{
	    return m_last_update_user;
	}
	public void  setLastUpdateUser(String v)
	{
		if(getLastUpdateUser().equals(v)) return ;
		m_last_update_user = v ;
		markDirty(LAST_UPDATE_USER);
	}



	

	public String getLastUpdateTime()
	{
	    return m_last_update_time;
	}
	public void  setLastUpdateTime(String v)
	{
		if(getLastUpdateTime().equals(v)) return ;
		m_last_update_time = v ;
		markDirty(LAST_UPDATE_TIME);
	}



	

	public String getIsSync()
	{
	    return m_is_sync;
	}
	public void  setIsSync(String v)
	{
		if(getIsSync().equals(v)) return ;
		m_is_sync = v ;
		markDirty(IS_SYNC);
	}



	



	public String viewId(DBConnection con) throws Exception
	{
		return Value.view(getId());
	}

	public String viewInBillCode(DBConnection con) throws Exception
	{
		return Value.view(getInBillCode());
	}

	public String viewWarehouseCode(DBConnection con) throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewWarehouseName(DBConnection con) throws Exception
	{
		return Value.view(getWarehouseName());
	}

	public String viewProviderCode(DBConnection con) throws Exception
	{
		return Value.view(getProviderCode());
	}

	public String viewProviderName(DBConnection con) throws Exception
	{
		return Value.view(getProviderName());
	}

	public String viewOtherWarehouseCode(DBConnection con) throws Exception
	{
		return Value.view(getOtherWarehouseCode());
	}

	public String viewOtherWarehouseName(DBConnection con) throws Exception
	{
		return Value.view(getOtherWarehouseName());
	}

	public String viewInTime(DBConnection con) throws Exception
	{
		return Value.view(getInTime());
	}

	public String viewInType(DBConnection con) throws Exception
	{
		return Value.view(getInType());
	}

	public String viewInMoney(DBConnection con) throws Exception
	{
		return Value.view(getInMoney());
	}

	public String viewSendBillCode(DBConnection con) throws Exception
	{
		return Value.view(getSendBillCode());
	}

	public String viewRemark(DBConnection con) throws Exception
	{
		return Value.view(getRemark());
	}

	public String viewBalanceFlag(DBConnection con) throws Exception
	{
		return Value.view(getBalanceFlag());
	}

	public String viewBalanceUserId(DBConnection con) throws Exception
	{
		return Value.view(getBalanceUserId());
	}

	public String viewBalanceUser(DBConnection con) throws Exception
	{
		return Value.view(getBalanceUser());
	}

	public String viewBalanceTime(DBConnection con) throws Exception
	{
		return Value.view(getBalanceTime());
	}

	public String viewStatus(DBConnection con) throws Exception
	{
		return Value.view(getStatus());
	}

	public String viewCreateUserId(DBConnection con) throws Exception
	{
		return Value.view(getCreateUserId());
	}

	public String viewCreateUser(DBConnection con) throws Exception
	{
		return Value.view(getCreateUser());
	}

	public String viewCreateTime(DBConnection con) throws Exception
	{
		return Value.view(getCreateTime());
	}

	public String viewLastUpdateUserId(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateUserId());
	}

	public String viewLastUpdateUser(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateUser());
	}

	public String viewLastUpdateTime(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateTime());
	}

	public String viewIsSync(DBConnection con) throws Exception
	{
		return Value.view(getIsSync());
	}



protected InHeadHisBase()
{
}

public void fill(InHeadPageData pageData) throws Exception
{

	if(pageData.getId()!=null)
	{	
		setId(pageData.getId());
	}

	if(pageData.getInBillCode()!=null)
	{	
		setInBillCode(pageData.getInBillCode());
	}

	if(pageData.getWarehouseCode()!=null)
	{	
		setWarehouseCode(pageData.getWarehouseCode());
	}

	if(pageData.getWarehouseName()!=null)
	{	
		setWarehouseName(pageData.getWarehouseName());
	}

	if(pageData.getProviderCode()!=null)
	{	
		setProviderCode(pageData.getProviderCode());
	}

	if(pageData.getProviderName()!=null)
	{	
		setProviderName(pageData.getProviderName());
	}

	if(pageData.getOtherWarehouseCode()!=null)
	{	
		setOtherWarehouseCode(pageData.getOtherWarehouseCode());
	}

	if(pageData.getOtherWarehouseName()!=null)
	{	
		setOtherWarehouseName(pageData.getOtherWarehouseName());
	}

	if(pageData.getInTime()!=null)
	{	
		setInTime(pageData.getInTime());
	}

	if(pageData.getInType()!=null)
	{	
		setInType(pageData.getInType());
	}

	if( pageData.getInMoney()!=null && 
	   !pageData.getInMoney().equals(""))
	{	
		setInMoney(Double.parseDouble(pageData.getInMoney()));
	}

	if(pageData.getSendBillCode()!=null)
	{	
		setSendBillCode(pageData.getSendBillCode());
	}

	if(pageData.getRemark()!=null)
	{	
		setRemark(pageData.getRemark());
	}

	if(pageData.getBalanceFlag()!=null)
	{	
		setBalanceFlag(pageData.getBalanceFlag());
	}

	if(pageData.getBalanceUserId()!=null)
	{	
		setBalanceUserId(pageData.getBalanceUserId());
	}

	if(pageData.getBalanceUser()!=null)
	{	
		setBalanceUser(pageData.getBalanceUser());
	}

	if(pageData.getBalanceTime()!=null)
	{	
		setBalanceTime(pageData.getBalanceTime());
	}

	if(pageData.getStatus()!=null)
	{	
		setStatus(pageData.getStatus());
	}

	if(pageData.getCreateUserId()!=null)
	{	
		setCreateUserId(pageData.getCreateUserId());
	}

	if(pageData.getCreateUser()!=null)
	{	
		setCreateUser(pageData.getCreateUser());
	}

	if(pageData.getCreateTime()!=null)
	{	
		setCreateTime(pageData.getCreateTime());
	}

	if(pageData.getLastUpdateUserId()!=null)
	{	
		setLastUpdateUserId(pageData.getLastUpdateUserId());
	}

	if(pageData.getLastUpdateUser()!=null)
	{	
		setLastUpdateUser(pageData.getLastUpdateUser());
	}

	if(pageData.getLastUpdateTime()!=null)
	{	
		setLastUpdateTime(pageData.getLastUpdateTime());
	}

	if(pageData.getIsSync()!=null)
	{	
		setIsSync(pageData.getIsSync());
	}

}

public String getTableName() 
{
	return TABLE_NAME;
}

public String getBackupTableName() 
{
	return BACKUP_TABLE_NAME;
}

public String getBackupSeqName() 
{
	return BACKUP_SEQ_NAME;
}

public java.util.Vector getFields() 
{
	if(m_fields==null)
	{
		m_fields = new Vector();

		m_fields.add(new Field(ID,Value.TYPE_STRING,true,true,32,"ID"));

		m_fields.add(new Field(IN_BILL_CODE,Value.TYPE_STRING,false,true,30,"入库单编码"));

		m_fields.add(new Field(WAREHOUSE_CODE,Value.TYPE_STRING,false,true,20,"仓库编码"));

		m_fields.add(new Field(WAREHOUSE_NAME,Value.TYPE_STRING,false,true,50,"仓库名称"));

		m_fields.add(new Field(PROVIDER_CODE,Value.TYPE_STRING,false,false,10,"供应商编码"));

		m_fields.add(new Field(PROVIDER_NAME,Value.TYPE_STRING,false,false,50,"供应商名称"));

		m_fields.add(new Field(OTHER_WAREHOUSE_CODE,Value.TYPE_STRING,false,false,20,"对方仓库编码"));

		m_fields.add(new Field(OTHER_WAREHOUSE_NAME,Value.TYPE_STRING,false,false,50,"对方仓库名称"));

		m_fields.add(new Field(IN_TIME,Value.TYPE_STRING,false,true,20,"入库时间"));

		m_fields.add(new Field(IN_TYPE,Value.TYPE_STRING,false,true,30,"入库类型"));

		m_fields.add(new Field(IN_MONEY,Value.TYPE_DOUBLE,false,true,0,"入库金额"));

		m_fields.add(new Field(SEND_BILL_CODE,Value.TYPE_STRING,false,false,50,"送货单号"));

		m_fields.add(new Field(REMARK,Value.TYPE_STRING,false,false,200,"备注"));

		m_fields.add(new Field(BALANCE_FLAG,Value.TYPE_STRING,false,true,1,"结算标志"));

		m_fields.add(new Field(BALANCE_USER_ID,Value.TYPE_STRING,false,false,32,"结算人ID"));

		m_fields.add(new Field(BALANCE_USER,Value.TYPE_STRING,false,false,50,"结算人姓名"));

		m_fields.add(new Field(BALANCE_TIME,Value.TYPE_STRING,false,false,20,"结算时间"));

		m_fields.add(new Field(STATUS,Value.TYPE_STRING,false,true,1,"是否有效"));

		m_fields.add(new Field(CREATE_USER_ID,Value.TYPE_STRING,false,true,32,"创建用户ID"));

		m_fields.add(new Field(CREATE_USER,Value.TYPE_STRING,false,true,50,"创建用户"));

		m_fields.add(new Field(CREATE_TIME,Value.TYPE_STRING,false,true,20,"单证创建时间"));

		m_fields.add(new Field(LAST_UPDATE_USER_ID,Value.TYPE_STRING,false,true,32,"最后修改人ID"));

		m_fields.add(new Field(LAST_UPDATE_USER,Value.TYPE_STRING,false,true,50,"最后修改人"));

		m_fields.add(new Field(LAST_UPDATE_TIME,Value.TYPE_STRING,false,true,20,"最后修改时间"));

		m_fields.add(new Field(IS_SYNC,Value.TYPE_STRING,false,true,1,"是否已同步"));
		
	}
	return m_fields;
}

public void initObject(java.sql.ResultSet rs) throws Exception
{

	m_id = getString(rs,ID);

	m_in_bill_code = getString(rs,IN_BILL_CODE);

	m_warehouse_code = getString(rs,WAREHOUSE_CODE);

	m_warehouse_name = getString(rs,WAREHOUSE_NAME);

	m_provider_code = getString(rs,PROVIDER_CODE);

	m_provider_name = getString(rs,PROVIDER_NAME);

	m_other_warehouse_code = getString(rs,OTHER_WAREHOUSE_CODE);

	m_other_warehouse_name = getString(rs,OTHER_WAREHOUSE_NAME);

	m_in_time = getString(rs,IN_TIME);

	m_in_type = getString(rs,IN_TYPE);

	m_in_money = getDouble(rs,IN_MONEY);

	m_send_bill_code = getString(rs,SEND_BILL_CODE);

	m_remark = getString(rs,REMARK);

	m_balance_flag = getString(rs,BALANCE_FLAG);

	m_balance_user_id = getString(rs,BALANCE_USER_ID);

	m_balance_user = getString(rs,BALANCE_USER);

	m_balance_time = getString(rs,BALANCE_TIME);

	m_status = getString(rs,STATUS);

	m_create_user_id = getString(rs,CREATE_USER_ID);

	m_create_user = getString(rs,CREATE_USER);

	m_create_time = getString(rs,CREATE_TIME);

	m_last_update_user_id = getString(rs,LAST_UPDATE_USER_ID);

	m_last_update_user = getString(rs,LAST_UPDATE_USER);

	m_last_update_time = getString(rs,LAST_UPDATE_TIME);

	m_is_sync = getString(rs,IS_SYNC);

	ms_new_flag = ConstDefine.NO;
}

public Value get(String f)
{

	if(f.equalsIgnoreCase(ID))
	{
		return new Value(getId());
	}

	if(f.equalsIgnoreCase(IN_BILL_CODE))
	{
		return new Value(getInBillCode());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_CODE))
	{
		return new Value(getWarehouseCode());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_NAME))
	{
		return new Value(getWarehouseName());
	}

	if(f.equalsIgnoreCase(PROVIDER_CODE))
	{
		return new Value(getProviderCode());
	}

	if(f.equalsIgnoreCase(PROVIDER_NAME))
	{
		return new Value(getProviderName());
	}

	if(f.equalsIgnoreCase(OTHER_WAREHOUSE_CODE))
	{
		return new Value(getOtherWarehouseCode());
	}

	if(f.equalsIgnoreCase(OTHER_WAREHOUSE_NAME))
	{
		return new Value(getOtherWarehouseName());
	}

	if(f.equalsIgnoreCase(IN_TIME))
	{
		return new Value(getInTime());
	}

	if(f.equalsIgnoreCase(IN_TYPE))
	{
		return new Value(getInType());
	}

	if(f.equalsIgnoreCase(IN_MONEY))
	{
		return new Value(getInMoney());
	}

	if(f.equalsIgnoreCase(SEND_BILL_CODE))
	{
		return new Value(getSendBillCode());
	}

	if(f.equalsIgnoreCase(REMARK))
	{
		return new Value(getRemark());
	}

	if(f.equalsIgnoreCase(BALANCE_FLAG))
	{
		return new Value(getBalanceFlag());
	}

	if(f.equalsIgnoreCase(BALANCE_USER_ID))
	{
		return new Value(getBalanceUserId());
	}

	if(f.equalsIgnoreCase(BALANCE_USER))
	{
		return new Value(getBalanceUser());
	}

	if(f.equalsIgnoreCase(BALANCE_TIME))
	{
		return new Value(getBalanceTime());
	}

	if(f.equalsIgnoreCase(STATUS))
	{
		return new Value(getStatus());
	}

	if(f.equalsIgnoreCase(CREATE_USER_ID))
	{
		return new Value(getCreateUserId());
	}

	if(f.equalsIgnoreCase(CREATE_USER))
	{
		return new Value(getCreateUser());
	}

	if(f.equalsIgnoreCase(CREATE_TIME))
	{
		return new Value(getCreateTime());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER_ID))
	{
		return new Value(getLastUpdateUserId());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER))
	{
		return new Value(getLastUpdateUser());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_TIME))
	{
		return new Value(getLastUpdateTime());
	}

	if(f.equalsIgnoreCase(IS_SYNC))
	{
		return new Value(getIsSync());
	}
	
	return null;
}
public void set(String f,Value v) throws Exception
{

	if(f.equalsIgnoreCase(ID))
	{
		setId(v.getString());
	}

	if(f.equalsIgnoreCase(IN_BILL_CODE))
	{
		setInBillCode(v.getString());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_CODE))
	{
		setWarehouseCode(v.getString());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_NAME))
	{
		setWarehouseName(v.getString());
	}

	if(f.equalsIgnoreCase(PROVIDER_CODE))
	{
		setProviderCode(v.getString());
	}

	if(f.equalsIgnoreCase(PROVIDER_NAME))
	{
		setProviderName(v.getString());
	}

	if(f.equalsIgnoreCase(OTHER_WAREHOUSE_CODE))
	{
		setOtherWarehouseCode(v.getString());
	}

	if(f.equalsIgnoreCase(OTHER_WAREHOUSE_NAME))
	{
		setOtherWarehouseName(v.getString());
	}

	if(f.equalsIgnoreCase(IN_TIME))
	{
		setInTime(v.getString());
	}

	if(f.equalsIgnoreCase(IN_TYPE))
	{
		setInType(v.getString());
	}

	if(f.equalsIgnoreCase(IN_MONEY))
	{
		setInMoney(v.getDouble());
	}

	if(f.equalsIgnoreCase(SEND_BILL_CODE))
	{
		setSendBillCode(v.getString());
	}

	if(f.equalsIgnoreCase(REMARK))
	{
		setRemark(v.getString());
	}

	if(f.equalsIgnoreCase(BALANCE_FLAG))
	{
		setBalanceFlag(v.getString());
	}

	if(f.equalsIgnoreCase(BALANCE_USER_ID))
	{
		setBalanceUserId(v.getString());
	}

	if(f.equalsIgnoreCase(BALANCE_USER))
	{
		setBalanceUser(v.getString());
	}

	if(f.equalsIgnoreCase(BALANCE_TIME))
	{
		setBalanceTime(v.getString());
	}

	if(f.equalsIgnoreCase(STATUS))
	{
		setStatus(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_USER_ID))
	{
		setCreateUserId(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_USER))
	{
		setCreateUser(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_TIME))
	{
		setCreateTime(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER_ID))
	{
		setLastUpdateUserId(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER))
	{
		setLastUpdateUser(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_TIME))
	{
		setLastUpdateTime(v.getString());
	}

	if(f.equalsIgnoreCase(IS_SYNC))
	{
		setIsSync(v.getString());
	}
	
}
public String toString()
{
	String msg = "InHead=\n";
	msg += "(\r\n";

	msg += "    ID(id)="+get("id")+"\r\n";

	msg += "    入库单编码(in_bill_code)="+get("in_bill_code")+"\r\n";

	msg += "    仓库编码(warehouse_code)="+get("warehouse_code")+"\r\n";

	msg += "    仓库名称(warehouse_name)="+get("warehouse_name")+"\r\n";

	msg += "    供应商编码(provider_code)="+get("provider_code")+"\r\n";

	msg += "    供应商名称(provider_name)="+get("provider_name")+"\r\n";

	msg += "    对方仓库编码(other_warehouse_code)="+get("other_warehouse_code")+"\r\n";

	msg += "    对方仓库名称(other_warehouse_name)="+get("other_warehouse_name")+"\r\n";

	msg += "    入库时间(in_time)="+get("in_time")+"\r\n";

	msg += "    入库类型(in_type)="+get("in_type")+"\r\n";

	msg += "    入库金额(in_money)="+get("in_money")+"\r\n";

	msg += "    送货单号(send_bill_code)="+get("send_bill_code")+"\r\n";

	msg += "    备注(remark)="+get("remark")+"\r\n";

	msg += "    结算标志(balance_flag)="+get("balance_flag")+"\r\n";

	msg += "    结算人ID(balance_user_id)="+get("balance_user_id")+"\r\n";

	msg += "    结算人姓名(balance_user)="+get("balance_user")+"\r\n";

	msg += "    结算时间(balance_time)="+get("balance_time")+"\r\n";

	msg += "    是否有效(status)="+get("status")+"\r\n";

	msg += "    创建用户ID(create_user_id)="+get("create_user_id")+"\r\n";

	msg += "    创建用户(create_user)="+get("create_user")+"\r\n";

	msg += "    单证创建时间(create_time)="+get("create_time")+"\r\n";

	msg += "    最后修改人ID(last_update_user_id)="+get("last_update_user_id")+"\r\n";

	msg += "    最后修改人(last_update_user)="+get("last_update_user")+"\r\n";

	msg += "    最后修改时间(last_update_time)="+get("last_update_time")+"\r\n";

	msg += "    是否已同步(is_sync)="+get("is_sync")+"\r\n";
		
	msg += ")\r\n";
	return msg;
}
public void copyBase(InHeadHisBase srcObj)
{

	setInBillCode(srcObj.getInBillCode());

	setWarehouseCode(srcObj.getWarehouseCode());

	setWarehouseName(srcObj.getWarehouseName());

	setProviderCode(srcObj.getProviderCode());

	setProviderName(srcObj.getProviderName());

	setOtherWarehouseCode(srcObj.getOtherWarehouseCode());

	setOtherWarehouseName(srcObj.getOtherWarehouseName());

	setInTime(srcObj.getInTime());

	setInType(srcObj.getInType());

	setInMoney(srcObj.getInMoney());

	setSendBillCode(srcObj.getSendBillCode());

	setRemark(srcObj.getRemark());

	setBalanceFlag(srcObj.getBalanceFlag());

	setBalanceUserId(srcObj.getBalanceUserId());

	setBalanceUser(srcObj.getBalanceUser());

	setBalanceTime(srcObj.getBalanceTime());

	setStatus(srcObj.getStatus());

	setCreateUserId(srcObj.getCreateUserId());

	setCreateUser(srcObj.getCreateUser());

	setCreateTime(srcObj.getCreateTime());

	setLastUpdateUserId(srcObj.getLastUpdateUserId());

	setLastUpdateUser(srcObj.getLastUpdateUser());

	setLastUpdateTime(srcObj.getLastUpdateTime());

	setIsSync(srcObj.getIsSync());

}

public String toXml() throws Exception
{
	String xml = "";
	xml += "<InHead>";

	xml += "<Id>"+Value.view(getId())+"</Id>";

	xml += "<InBillCode>"+Value.view(getInBillCode())+"</InBillCode>";

	xml += "<WarehouseCode>"+Value.view(getWarehouseCode())+"</WarehouseCode>";

	xml += "<WarehouseName>"+Value.view(getWarehouseName())+"</WarehouseName>";

	xml += "<ProviderCode>"+Value.view(getProviderCode())+"</ProviderCode>";

	xml += "<ProviderName>"+Value.view(getProviderName())+"</ProviderName>";

	xml += "<OtherWarehouseCode>"+Value.view(getOtherWarehouseCode())+"</OtherWarehouseCode>";

	xml += "<OtherWarehouseName>"+Value.view(getOtherWarehouseName())+"</OtherWarehouseName>";

	xml += "<InTime>"+Value.view(getInTime())+"</InTime>";

	xml += "<InType>"+Value.view(getInType())+"</InType>";

	xml += "<InMoney>"+Value.view(getInMoney())+"</InMoney>";

	xml += "<SendBillCode>"+Value.view(getSendBillCode())+"</SendBillCode>";

	xml += "<Remark>"+Value.view(getRemark())+"</Remark>";

	xml += "<BalanceFlag>"+Value.view(getBalanceFlag())+"</BalanceFlag>";

	xml += "<BalanceUserId>"+Value.view(getBalanceUserId())+"</BalanceUserId>";

	xml += "<BalanceUser>"+Value.view(getBalanceUser())+"</BalanceUser>";

	xml += "<BalanceTime>"+Value.view(getBalanceTime())+"</BalanceTime>";

	xml += "<Status>"+Value.view(getStatus())+"</Status>";

	xml += "<CreateUserId>"+Value.view(getCreateUserId())+"</CreateUserId>";

	xml += "<CreateUser>"+Value.view(getCreateUser())+"</CreateUser>";

	xml += "<CreateTime>"+Value.view(getCreateTime())+"</CreateTime>";

	xml += "<LastUpdateUserId>"+Value.view(getLastUpdateUserId())+"</LastUpdateUserId>";

	xml += "<LastUpdateUser>"+Value.view(getLastUpdateUser())+"</LastUpdateUser>";

	xml += "<LastUpdateTime>"+Value.view(getLastUpdateTime())+"</LastUpdateTime>";

	xml += "<IsSync>"+Value.view(getIsSync())+"</IsSync>";
	
	xml += "</InHead>";
	return xml;
}

}
